import { NavBar } from 'antd-mobile'
import React from 'react'
import { useSearchParams } from 'react-router-dom'

function Header() {
    let [sp]=useSearchParams()
  return (
    <div>
      <NavBar>
        <span>{sp.get('start')}→{sp.get('end')}</span>
      </NavBar>
    </div>
  )
}

export default Header
